<!DOCTYPE html>
<html>
<head>
	{include file="common_header" /}
	{include file="common_top" /}
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-col-md12">
        <div class="layui-card">
          <div class="layui-card-body">
            <table class="layui-table" lay-even="" lay-skin="nob">

            <thead>
              <tr>
                <th>#序号</th>
				<th>排序</th>
				<th>图片</th>
                <th>名称</th>
				<th>单价</th>
				<th>库存</th>
				<th>重量/单位</th>
				<th>备注</th>
                <th>状态</th>
				<th>添加时间</th>
				<th>管理</th>
              </tr> 
            </thead>
            <tbody>
             {volist name="gift" id="vo"}
				<tr id="tr_{$vo.gift_id}">
					<td>{$vo.gift_id}</td>
					<td>{$vo.gift_sort}</td>
					<td>图片</td>
					<td>{$vo.gift_title}</td>
					<td>{$vo.gift_money}</td>
					<td>{$vo.gift_count}</td>
					<td>{$vo.gift_heft}kg / {$vo.gift_unit}</td>
					<td>{$vo.gift_content}</td>
					<td class="text-center">{if $vo.gift_status==1}<span class="layui-badge-dot layui-bg-green"></span>{else}<span class="layui-badge-dot"></span>{/if}</td>
					<td>{$vo.gift_addtime}</td>
					<td>
							<div class="layui-btn-group">
                            {if $ps['del']['power']}
								<button class="layui-btn layui-btn-sm" onclick="calldel('{:url('gift/del',array('id'=>$vo.gift_id))}','tr_{$vo.gift_id}')"><i class="layui-icon">&#xe640;</i></button>
                            {/if}
                            {if $ps['edit']['power']}
								<button class="layui-btn layui-btn-sm" onclick="callurl('{:url('gift/edit',array('id'=>$vo.gift_id))}')"><i class="layui-icon">&#xe642;</i></button>
							{/if}
							</div>
					</td>
				</tr>
			{/volist}
            </tbody>
          </table> 
          </div>
        </div>
      </div>
    </div>
  </div>
  {include file="common_footer" /} 
</body>
</html>